<?php
class p_logout extends page_controllor  
{
    public function __construct($get_param)
    {
        $this->__need_login = false;
        parent::__construct($get_param);
    }
    
    public function run()
    {
        $oSess = K::session();
        $oSess->delete(K_SESSION_KEY_LOGIN);
        
        setcookie(K_COOKIE_JS_UID , null , time()-86400 , '/' , K5_DOMAIN);
        
        $this->redirect($_SERVER['HTTP_REFERER']);
    }
}
?>